package com.fyl.controller;

import com.fyl.service.QuickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class QuickController {
    @Autowired
    private QuickService quickService;
    @RequestMapping(value = {"/show","/showxxx"},method = RequestMethod.GET)
    public String show(){
        System.out.println("show running......"+quickService);
        return  "/index.jsp";
    }


    @GetMapping("/show2")
    public String show2(){
        System.out.println("show running......"+quickService);
        return  "redirect:/index.jsp";
    }
}
